package edu.yuhf.io;

import java.io.FileReader;
import java.io.FileWriter;

public class CharStreamTest {
		public static void main(String[] args) {
			try (FileReader fr=new FileReader("");
					FileWriter fw=new FileWriter("");
					){
				char[] buffer=new char[1024];
				while(fr.read(buffer)!=-1) {
					fw.write(buffer);
					fw.flush();
				}
			} catch (Exception e) {
				// TODO: handle exception
			}
		}
}
